package net.xiaosaguo.mymall.secondkill.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * description: 定时任务
 *
 * @author xiaosaguo
 * @date 2020/07/19
 */
@Slf4j
@Component
@EnableScheduling
public class HelloSchedule {

    @Scheduled(cron = "* * * * * ?")
    public void hello() {
        log.info("hello...");
    }
}
